package io.renren.modules.study.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import io.renren.modules.study.entity.StudyBaseSubject;
import io.renren.modules.study.entity.Event;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface EventMapper extends BaseMapper<Event> {
    List<StudyBaseSubject> selectSubjectsByEventId(@Param("eventId") Long eventId, @Param("tableName1") String tableName1, @Param("tableName2") String tableName2);
    int insertEventSubject(@Param("eventId") Long eventId, @Param("subjectId") Long subjectId, @Param("tableName") String tableName);
    int deleteEventSubject(@Param("eventId") Long eventId, @Param("subjectId") Long subjectId, @Param("tableName") String tableName);

}
